launchsettings.json
We can change which profile to use by clicking on the relevant dropdownlist in Visual Studio
The value in the dropdown are those of the commandName property in the launchsettings.json file:
- http
- https
- IISExpress
- WSL

As can be read Here, we can also set envitonmnet variable in the launchsettings.json file. In the preevious exmaple, here, we set the ASPNETCORE_ENVIRONMENT environment varialbe to Develop. Environment values set in launchSettings.json override values set by the system environment.